-
Notifications
You must be signed in to change notification settings - Fork 2
fix(Steam): add better login persistence and update API version #16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
f4ff567 to
d0851d9
Compare
| item.provider_app_id = app_id | ||
| item.name = data["name"] | ||
| item.command = "steam" | ||
| item.args = ["-gamepadui", "-steamos3", "-steampal", "-steamdeck", "-silent", "steam://rungameid/" + app_id] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this change creates issues with Steam. I have no focus on the game, but on a black window and there is no controls. When I use the official stable release the games I tested work. MH Rise Demo and Pixel Gun 3D. Also I noticed that the UI is in BigPicture mode somehow.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reverting that change make the controls work again. Also the correct window is focused.
d0851d9 to
34c1773
Compare
34c1773 to
590eaf7
Compare
|
Any progress on this one? @ShadowApex |
| var current_output: Array[String] = [] | ||
|
|
||
| var logger := Log.get_logger("SteamClient", Log.LEVEL.INFO) | ||
| var logger := Log.get_logger("SteamClient", Log.LEVEL.DEBUG) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't forget to set back before merge
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reminder
| await wait_for_network() | ||
|
|
||
|
|
||
| # Ensure the client is part of the Steam Deck beta |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have found different behavior depending on whether or not the Steam client is using the Steam Deck branch or not.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is more about the beta channel than if the UX for the deck is used. Based on license agreements for non steamos only the flag gamepadui should be used. However BigPicture mode still acts different than when the UX for the Steamdeck is used. There is still the hope of getting an universal handheld mode and the flag for the deck may get reduced to branding purposes. However that needs further discussions with Valve.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There has been a difference, specifically when using the -steamos3 and -steamdeck flags, but lately I have been having some decent success just using the -gamepadui flag, so it's possible that using the Steam Deck channel may not be necessary.
| else: | ||
| users = vdf.data | ||
|
|
||
| for username in accounts.keys(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are there two formats?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure what you mean here. Could you elaborate?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems this changes the case from PascalCase to lower case sometimes?
3e5f69b to
9ca2f8b
Compare
9ca2f8b to
04040df
Compare
| var current_output: Array[String] = [] | ||
|
|
||
| var logger := Log.get_logger("SteamClient", Log.LEVEL.INFO) | ||
| var logger := Log.get_logger("SteamClient", Log.LEVEL.DEBUG) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reminder
|
Fixes ShadowBlip/OpenGamepadUI#298 |
| if not item.provider_app_id.is_valid_int(): | ||
| return | ||
| if not _steam.is_logged_in: | ||
| return |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this produce a notification window?
| ## Hook to execute when the app exits. This will try to restore the startup video. | ||
| class ExitHook extends AppLifecycleHook: | ||
| var _steam: SteamClient | ||
| var _replace_intro_video: bool |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can the duplicated properties and functionality be added to the parent class, or a new intermediate SteamLifecycleHook?
| ## [InteractiveProcess] to spawn steamcmd in a psuedo terminal to read and write | ||
| ## to its stdout/stdin. | ||
|
|
||
| const steam_url := "https://steamdeck-packages.steamos.cloud/archlinux-mirror/jupiter-main/os/x86_64/steam-jupiter-stable-1.0.0.81-2.5-x86_64.pkg.tar.zst" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems fragile, perhaps it would be better to find the highest version available in the webdir?
| DirAccess.make_dir_recursive_absolute(package_path) | ||
| var f := FileAccess.open(beta_file, FileAccess.WRITE) | ||
| f.store_string("steamdeck_publicbeta") | ||
| #var beta_file := "/".join([package_path, "beta"]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There seems to be a lot of dead/commented code here.
7f63ab1 to
2b476d8
Compare
No description provided.